<?php

require_once(WSB_MODULES_PATH . 'cms/models/PageLanguages.php');
require_once(WSB_MODULES_PATH . 'cms/models/PageLanguage.php');

class Cms_Model_DbTable_PageLanguage extends WSB_Db_Table
{

    protected $_name = 'page_language';
    protected $_primary = 'id';
    protected $_rowsetClass = 'Cms_Model_PageLanguages';
    protected $_rowClass = 'Cms_Model_PageLanguage';
    protected $_referenceMap    = array(
        'Page' => array(
            'columns'		=> 'page_id',
            'refTableClass'	=> 'Cms_Model_DbTable_Page',
            'refColumns'	=> 'id'
        ),
        'Language' => array(
            'columns'		=> 'language_id',
            'refTableClass'	=> 'Cms_Model_DbTable_Language',
            'refColumns'	=> 'id'
        )
    );

}